Re: Autonomous transaction - Mailing list pgsql-general

From Dan Sugalski
Subject Re: Autonomous transaction
Date
Msg-id a0611040abd6b7733c166@[10.0.1.5]
Whole thread Raw
In response to Autonomous transaction  (Daniel Daoust <daoustd_ca@yahoo.ca>)
List pgsql-general
At 11:18 AM -0400 9/13/04, Daniel Daoust wrote:
>Hi, knowing that "autonomous transaction" (Oracle
>concept of) are not yet implemented in PostgreSQL, has
>anyone found a work-around. I need to preserve
>database states from a potential rollback and then log
>them inside database tables.

What I use for this is multiple DB connections. A rollback on one
connection doesn't (generally) affect any of the other connections,
so you can keep things separate and safe from rollbacks.

Note that you can deadlock yourself this way.
--
                Dan

--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk

pgsql-general by date:

Previous
From: "Jim Wilson"
Date:
Subject: Re: problems returning a resultset from a function
Next
From: Fabien
Date:
Subject: Index inheritance